// Swipe
this._swipeTracker = new SwipeTracker.SwipeTracker(this._scrollView,
- Clutter.Orientation.HORIZONTAL, this.gestureModes);
+ Clutter.Orientation.HORIZONTAL,
+ this.gestureModes,
+ {
+ name: 'AppDisplay swipe tracker',
+ });
this._swipeTracker.orientation = Clutter.Orientation.HORIZONTAL;
this._swipeTracker.connect('begin', this._swipeBegin.bind(this));
this._swipeTracker.connect('update', this._swipeUpdate.bind(this));
const swipeTracker = new SwipeTracker.SwipeTracker(this,
Clutter.Orientation.HORIZONTAL,
Shell.ActionMode.NORMAL | Shell.ActionMode.OVERVIEW,
- {allowDrag: true, allowScroll: true});
+ {
+ allowDrag: true,
+ allowScroll: true,
+ name: 'EmojiPager swipe tracker',
+ });
swipeTracker.connect('begin', this._onSwipeBegin.bind(this));
swipeTracker.connect('update', this._onSwipeUpdate.bind(this));
swipeTracker.connect('end', this._onSwipeEnd.bind(this));
{
allowDrag: false,
allowScroll: false,
+ name: 'Overview swipe tracker',
phase: Clutter.EventPhase.CAPTURE,
});
swipeTracker.orientation = Clutter.Orientation.VERTICAL;
allowDrag: true,
allowScroll: true,
phase: Clutter.EventPhase.BUBBLE,
+ name: 'SwipeTracker',
});
super._init();
? Clutter.PanAxis.X : Clutter.PanAxis.Y,
],
null);
- actor.add_action_full('SwipeTracker', params.phase, this._panGesture);
+ actor.add_action_full(params.name, params.phase, this._panGesture);
this._touchpadGesture = new TouchpadSwipeGesture(allowedModes);
this._touchpadGesture.connect('begin', this._beginTouchpadGesture.bind(this));
this._swipeTracker = new SwipeTracker.SwipeTracker(this,
Clutter.Orientation.VERTICAL,
- Shell.ActionMode.UNLOCK_SCREEN);
+ Shell.ActionMode.UNLOCK_SCREEN,
+ {
+ name: 'UnlockDialog swipe tracker',
+ });
this._swipeTracker.connect('begin', this._swipeBegin.bind(this));
this._swipeTracker.connect('update', this._swipeUpdate.bind(this));
this._swipeTracker.connect('end', this._swipeEnd.bind(this));
{
allowDrag: false,
phase: Clutter.EventPhase.CAPTURE,
+ name: 'WorkspaceAnimation swipe tracker',
});
swipeTracker.connect('begin', this._switchWorkspaceBegin.bind(this));
swipeTracker.connect('update', this._switchWorkspaceUpdate.bind(this));
Main.layoutManager.overviewGroup,
Clutter.Orientation.HORIZONTAL,
Shell.ActionMode.OVERVIEW,
- {allowDrag: false});
+ {
+ allowDrag: false,
+ name: 'WorkspacesView swipe tracker',
+ });
this._swipeTracker.allowLongSwipes = true;
this._swipeTracker.connect('begin', this._switchWorkspaceBegin.bind(this));
this._swipeTracker.connect('update', this._switchWorkspaceUpdate.bind(this));